package org.walkerljl.commons.dts;

import java.util.List;

/**
 * DtsExecutor
 *
 * @author lijunlin
 */
public interface DtsExecutor {

    /**
     * prepare
     *
     * @param params
     * @return
     */
    DtsResult prepare(List<DtsParam> params);

    /**
     * commit
     *
     * @param params
     * @return
     */
    DtsResult commit(List<DtsParam> params);

    /**
     * rollback
     *
     * @param params
     * @return
     */
    DtsResult rollback(List<DtsParam> params);
}
